↳ Prolog
↳ PrologToPiTRSProof
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
PERM_IN_GA(L, .(H, T)) → APPEND2_IN_AAG(V, .(H, U), L)
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → U5_AAG(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → APPEND1_IN_GGA(V, U, W)
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → U4_GGA(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
U2_GA(L, H, T, append1_out_gga(V, U, W)) → U3_GA(L, H, T, perm_in_ga(W, T))
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APPEND1_IN_GGA(.(H, L1), L2, .(H, L3)) → APPEND1_IN_GGA(L1, L2, L3)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APPEND1_IN_GGA(.(H, L1), L2) → APPEND1_IN_GGA(L1, L2)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APPEND2_IN_AAG(.(H, L1), L2, .(H, L3)) → APPEND2_IN_AAG(L1, L2, L3)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APPEND2_IN_AAG(.(H, L3)) → APPEND2_IN_AAG(L3)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(L, .(H, T)) → U1_ga(L, H, T, append2_in_aag(V, .(H, U), L))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U1_ga(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_ga(L, H, T, append1_in_gga(V, U, W))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
U2_ga(L, H, T, append1_out_gga(V, U, W)) → U3_ga(L, H, T, perm_in_ga(W, T))
U3_ga(L, H, T, perm_out_ga(W, T)) → perm_out_ga(L, .(H, T))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U2_GA(L, H, T, append1_out_gga(V, U, W)) → PERM_IN_GA(W, T)
PERM_IN_GA(L, .(H, T)) → U1_GA(L, H, T, append2_in_aag(V, .(H, U), L))
U1_GA(L, H, T, append2_out_aag(V, .(H, U), L)) → U2_GA(L, H, T, append1_in_gga(V, U, W))
append2_in_aag([], L, L) → append2_out_aag([], L, L)
append2_in_aag(.(H, L1), L2, .(H, L3)) → U5_aag(H, L1, L2, L3, append2_in_aag(L1, L2, L3))
append1_in_gga([], L, L) → append1_out_gga([], L, L)
append1_in_gga(.(H, L1), L2, .(H, L3)) → U4_gga(H, L1, L2, L3, append1_in_gga(L1, L2, L3))
U5_aag(H, L1, L2, L3, append2_out_aag(L1, L2, L3)) → append2_out_aag(.(H, L1), L2, .(H, L3))
U4_gga(H, L1, L2, L3, append1_out_gga(L1, L2, L3)) → append1_out_gga(.(H, L1), L2, .(H, L3))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_IN_GA(L) → U1_GA(append2_in_aag(L))
U1_GA(append2_out_aag(V, .(H, U))) → U2_GA(H, append1_in_gga(V, U))
U2_GA(H, append1_out_gga(W)) → PERM_IN_GA(W)
append2_in_aag(L) → append2_out_aag([], L)
append2_in_aag(.(H, L3)) → U5_aag(H, append2_in_aag(L3))
append1_in_gga([], L) → append1_out_gga(L)
append1_in_gga(.(H, L1), L2) → U4_gga(H, append1_in_gga(L1, L2))
U5_aag(H, append2_out_aag(L1, L2)) → append2_out_aag(.(H, L1), L2)
U4_gga(H, append1_out_gga(L3)) → append1_out_gga(.(H, L3))
append2_in_aag(x0)
append1_in_gga(x0, x1)
U5_aag(x0, x1)
U4_gga(x0, x1)
PERM_IN_GA(L) → U1_GA(append2_in_aag(L))
POL(.(x1, x2)) = 1 + 2·x1 + x2
POL(PERM_IN_GA(x1)) = 1 + x1
POL(U1_GA(x1)) = x1
POL(U2_GA(x1, x2)) = 1 + 2·x1 + x2
POL(U4_gga(x1, x2)) = 1 + 2·x1 + x2
POL(U5_aag(x1, x2)) = 1 + 2·x1 + x2
POL([]) = 0
POL(append1_in_gga(x1, x2)) = x1 + x2
POL(append1_out_gga(x1)) = x1
POL(append2_in_aag(x1)) = x1
POL(append2_out_aag(x1, x2)) = x1 + x2
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
U1_GA(append2_out_aag(V, .(H, U))) → U2_GA(H, append1_in_gga(V, U))
U2_GA(H, append1_out_gga(W)) → PERM_IN_GA(W)
append2_in_aag(L) → append2_out_aag([], L)
append2_in_aag(.(H, L3)) → U5_aag(H, append2_in_aag(L3))
append1_in_gga([], L) → append1_out_gga(L)
append1_in_gga(.(H, L1), L2) → U4_gga(H, append1_in_gga(L1, L2))
U5_aag(H, append2_out_aag(L1, L2)) → append2_out_aag(.(H, L1), L2)
U4_gga(H, append1_out_gga(L3)) → append1_out_gga(.(H, L3))
append2_in_aag(x0)
append1_in_gga(x0, x1)
U5_aag(x0, x1)
U4_gga(x0, x1)